<div class="hotshot_info_portlet">
<p><span class="bean_count">Bean Count </span> <span class="bean_rating"><?php echo $model->beanRating;?></span></p>
</div>
<div class="portlet_part"><?php if($model->ownerName){?>
<h4>Owner:</h4>
<p><?php echo $model->ownerName;?></p>
<?php } ?> <?php if($model->coffeeBrand){?>
<h4>Coffee Brand:</h4>
<p><?php echo $model->coffeeBrand;?></p>
<?php } ?> <?php if($model->espressoMachine){?>
<h4>Espresso Machine:</h4>
<p><?php echo $model->espressoMachine;?></p>
<?php } ?>
<ul style="list-style: disc inside;">
<?php if($model->beansForSale){?>
	<li>Beans for Sale</li>
	<?php } ?>
	<?php if($model->internetAccess){?>
	<li>Internet Access</li>
	<?php } ?>
	<?php if($model->wifi){?>
	<li>Wifi</li>
	<?php } ?>
	<?php if($model->roastingOnSite){?>
	<li>Roasting on Site</li>
	<?php } ?>
	<?php if($model->goodForBusiness){?>
	<li>Good for Business Meets</li>
	<?php } ?>
</ul>
</div>
<div class="portlet_part">
<div class="vote_button"><span> <?php 
if($this->voteOn){

if($this->voted){
	?>You have voted this cafe<?php }else{
		echo CHtml::beginForm(array('/coffeeShop/vote','id'=>$model->id));
		?> <?php echo CHtml::submitButton("Vote for this cafe",array('coffeeShop/vote','id'=>$model->id));?>
		<?php echo CHtml::endForm(); ?> <?php }
}else{
	?>Voting for the <?php echo $this->votePeriod;?> is now closed!<?php
} ?></span></div>
<div class="clear"></div>
		<?php /*
		<h4>Votes:</h4>

		<table class="vote_cafe">
		<tr>
		<td>Today: <?php echo $model->voteToday;? ></td>
		<td>This Week: <?php echo $model->voteThisWeek;? ></td>
		<td>All: <?php echo $model->voteAll;? ></td>
		</tr>
		</table> */
		?></div>
		<?php
		if($model->ownerId==0){
			?>

<div class="portlet_part">This Cafe has no owner yet. <?php 
if(Yii::app()->user->getIsGuest()){
	echo CHtml::link('Login',array('/user/user/login')).' to apply to be owner of this cafe.';
}else{
	echo CHtml::link('Apply',array('/coffeeApply/apply','id'=>$model->id)).' to be owner of this cafe now!';
}
?></div>
<?php
		}
		if(Yii::app()->user->checkAccess('photoManager')){
			?>
<h4>Photographer</h4>
<div class="portlet_part">
			<?php
			echo CHtml::link('Manage Photos',array('/coffeeShop/manageImages','id'=>$model->id)).' of this cafe';
			?>
</div>
			<?php }
			?>

